package com.pogita.cleancode.testprotectionjava.repositories;

import com.pogita.cleancode.testprotectionjava.model.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;
import java.util.List;

@Repository
public interface BookRepository extends JpaRepository<Book, Integer> {
    List<Book> findBooksByNameLike(String name) throws SQLException;
}